package com.woniu.product.controller;

import com.woniu.common.utils.ResponseData;
import com.woniu.product.pojo.ZyImglist;
import com.woniu.product.service.ZyImglistService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author ltyipx
 * @version 1.0
 * @description:TODO
 * @date 2024/8/8 15:19
 */
@RestController
public class imgListController {
    @Autowired
    private ZyImglistService imglistService;
    @RequestMapping("/queryImgList")
    public ResponseData queryImgList(String id){
        List<ZyImglist> list = imglistService.lambdaQuery().eq(ZyImglist::getProductId,id).list();
        return new ResponseData().success(list);
    }

}
